module.exports = function ($scope, $modalInstance, $resource, toaster, item) {

  $scope.bean = item;
  $scope.dictlist = {
    'a1': '满意',
    'a2': '基本满意',
    'a3': '不满意'
  }

  $resource('/api/as/gc/shakeevaluateanswer/getAnswerInfoList', {}, {}).save({'openid': item.openid}, function(res){
    if(res.errcode === 0){
      $scope.objs = res.data;
    } else {
      toaster.error({title: '', body: '失败，请重试'});
    }
  });

  $scope.cancel = function(){
    $modalInstance.close();
  }

};